package com.bootdo.kaoqin.domain;

import java.beans.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-09-26 19:49:32
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class KaoqinUser extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//名字
		@HapiFeild("名字")
	private String name;
	
	//性别
		@HapiFeild("性别")
	private Integer sex;
	
	//年龄
		@HapiFeild("年龄")
	private Integer age;
	
	//班级id
		@HapiFeild("班级id")
	private Long classId;
	
	//班级
		@HapiFeild("班级")
	private String className;



	private String mobile;
	
	//城市ID
		@HapiFeild("城市ID")
	private Long cityId;
	
	//城市
		@HapiFeild("城市")
	private String cityName;
	
	//图片地址
		@HapiFeild("图片地址")
	private String pic;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;

	@HapiFeild("用户ID")
	private Long userId;
	@HapiFeild("用户名字")
	private String userName;


	private Long groupId;
	private String groupName;


	@NotColumn
	private List<KaoqinConfig> configs;

    public KaoqinUser(){
    
    	this.createTime = new Date();
    }

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public List<KaoqinConfig> getConfigs() {
		return configs;
	}

	public void setConfigs(List<KaoqinConfig> configs) {
		this.configs = configs;
	}

	public Long getGroupId() {
		return groupId;
	}


	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：名字
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名字
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：性别
	 */
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	/**
	 * 获取：性别
	 */
	public Integer getSex() {
		return sex;
	}
	/**
	 * 设置：年龄
	 */
	public void setAge(Integer age) {
		this.age = age;
	}
	/**
	 * 获取：年龄
	 */
	public Integer getAge() {
		return age;
	}
	/**
	 * 设置：班级id
	 */
	public void setClassId(Long classId) {
		this.classId = classId;
	}
	/**
	 * 获取：班级id
	 */
	public Long getClassId() {
		return classId;
	}
	/**
	 * 设置：班级
	 */
	public void setClassName(String className) {
		this.className = className;
	}
	/**
	 * 获取：班级
	 */
	public String getClassName() {
		return className;
	}
	/**
	 * 设置：城市ID
	 */
	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}
	/**
	 * 获取：城市ID
	 */
	public Long getCityId() {
		return cityId;
	}
	/**
	 * 设置：城市
	 */
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	/**
	 * 获取：城市
	 */
	public String getCityName() {
		return cityName;
	}
	/**
	 * 设置：图片地址
	 */
	public void setPic(String pic) {
		this.pic = pic;
	}
	/**
	 * 获取：图片地址
	 */
	public String getPic() {
		return pic;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}


	@Override
	@JsonIgnore
	@JSONField(serialize=false)
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
